<html>
<head>
<title>Upload Form</title>
</head>
<body>

<?php echo $error;?>

<?php 
echo form_open_multipart('upload/do_upload');  //necessary if you would like to use the form to upload files with.
?>

<input type="file" name="userfile" size="20" />

<br /><br />

<input type="submit" value="up" />

</form>

</body>
</html>